//package com.qdlg.tating.cotroller;
//
//import com.qdlg.tating.pojo.User;
//import com.qdlg.tating.service.IUserService;
//import com.qdlg.tating.service.serviceImp.UserServiceImp;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.stereotype.Service;
//import org.springframework.web.bind.annotation.RequestMapping;
//
//import javax.annotation.Resource;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
///**
// * Created by Administrator on 2016/1/15 0015.
// */
//@Controller
//public class TestController {
//    @Resource(name="userService")
//    IUserService userService;
//
//    @RequestMapping("/test")
//    public String Test(){
//
////        IUserService userService;
////        String username = req.getParameter("username");
////        String password = req.getParameter("password");
//
////        User user = new User();
////        user.setPassword(password);
////        user.setUserName(username);
////
////        if(userServiceImp.validateUser(user) == null){
////            return "index";
////        }
////        else{
////            return "test";
////        }
//
//        User user = new User();
//        user.setId(4);
//        user.setUsername("12");
//        user.setPassword("333");
//        user.setAge(3);
//        userService.insertUser(user);
//
//
////        if(userServiceImp.validateUser(username).equals(password)){
////            return "login";
////        }else{
////            return "index";
////        }
//
//        return "test";
//    }
////
////    @RequestMapping("/index")
////    public String Index(){
////        return "index";
////    }
//}
